\documentclass[12pt, landscape]{article}
\title{Rule Output}
\date{\today}
\usepackage[a0paper, vmargin=2cm, hmargin=2cm]{geometry}
\usepackage{lingmacros}
\usepackage{tikz}
\usepackage{tikz-qtree}
\usetikzlibrary{arrows,positioning,shapes}
\tikzset{
	%Define standard arrow tip
	>=stealth',
	%Define DS link style
	link/.style={
		<-,
		thick,
		dotted,},
	%Define DS token style
	token/.style={
		rectangle split,
		rectangle split parts=2,}
}
\usepackage{gb4e}
\begin{document}
\tikzstyle{every picture}+=[remember picture]
\maketitle

\begin{enumerate}
\item Rules for DS Pattern: [NNP $<$fs $>$]
\begin{enumerate}
\begin{item}
\begin{samepage}
Rule: [NNP $<$fs $>$] $\rightarrow$ [N]; count=2\\
Occurs in: Structure-of-NP-PS-3, Structure-of-PP-PS-3
\begin{itemize}
\begin{item}[]
Example id='Structure-of-NP-PS-3'
\end{item}
\begin{item}[]
\shortex{5}{rAma&kI&bacapana&kI&yAxeM}{Ram&Gen.f&childhood.M&Gen.f&memories.f}{Ram?s memories of childhood}
\end{item}
\begin{item}[]
\begin{tikzpicture}[sibling distance=48pt, level distance=24pt]
\Tree
[.\node{NP};
[.\node{NP-P};
[.\node{NP};
[.\node{N-Prop};
\node[token](rAma){rAma\nodepart{second}NNP};
]
]
[.\node{P};
\node[token](kI){kI\nodepart{second}PSP};
]
]
[.\node{NP};
[.\node{NP-P};
[.\node{NP};
[.\node{N};
\node[token](bacapana){bacapana\nodepart{second}NNP};
]
]
[.\node{P};
\node[token](kI2){kI\nodepart{second}PSP};
]
]
[.\node{N};
\node[token](yAxeM){yAxeM\nodepart{second}NN};
]
]
]
\path[link] (rAma.south) edge[bend right=56] node[pos=0.25,fill=white,sloped] {\scriptsize {r6}} (yAxeM);
\path[link] (kI.south) edge[bend left=32] node[pos=0.50,fill=white,sloped] {\scriptsize {lwg\_\_psp}} (rAma);
\path[link] (bacapana.south) edge[bend right=40] node[pos=0.40,fill=white,sloped] {\scriptsize {r6}} (yAxeM);
\path[link] (kI2.south) edge[bend left=32] node[pos=0.50,fill=white,sloped] {\scriptsize {lwg\_\_psp}} (bacapana);
\node[below=of yAxeM](root){\bf root};
\path[link] (yAxeM) edge (root);
\end{tikzpicture}
\end{item}
\end{itemize}
\end{samepage}
\end{item}
\begin{item}
\begin{samepage}
Rule: [NNP $<$fs $>$] $\rightarrow$ [N-Prop]; count=19\\
Occurs in: Dat-Goal-PS-1, Dat-Goal-PS-1, Local-Scrambling-PS-1, Local-Scrambling-PS-5, Local-Scrambling-PS-5, K2Lower-Argument-PS-1, K2Lower-Argument-PS-2, Transitive-Verbs-PS-2, Transitive-Verbs-PS-1, Transitive-Verbs-PS-3, Negation-PS-2, Negation-PS-2, Structure-of-NP-PS-3, Negation-PS-1, Negation-PS-1, Unergatives-PS-1, Structure-of-PP-PS-1, Structure-of-NP-PS-2, Structure-of-NP-PS-2
\begin{itemize}
\begin{item}[]
Example id='Dat-Goal-PS-1'
\end{item}
\begin{item}[]
\shortex{7}{AwiPZa&ne&kala&monA&ko&wohaPZA&xiyA}{Atif&Erg&yesterday&Mona&Dat&present&give.Pfv.MSg}{Atif gave a present to Mona yesterday.}
\end{item}
\begin{item}[]
\begin{tikzpicture}[sibling distance=48pt, level distance=24pt]
\Tree
[.\node{VP};
[.\node{NP-P};
[.\node{NP};
[.\node{N-Prop};
\node[token](AwiPZa){AwiPZa\nodepart{second}NNP};
]
]
[.\node{P};
\node[token](ne){ne\nodepart{second}PSP};
]
]
[.\node{VP-Pred};
[.\node{NP};
[.\node{N};
\node[token](kala){kala\nodepart{second}NN};
]
]
[.\node{VP-Pred};
[.\node{NP-P};
[.\node{NP};
[.\node{N-Prop};
\node[token](monA){monA\nodepart{second}NNP};
]
]
[.\node{P};
\node[token](ko){ko\nodepart{second}PSP};
]
]
[.\node{VP-Pred};
[.\node{NP};
[.\node{N};
\node[token](wohaPZA){wohaPZA\nodepart{second}NN};
]
]
[.\node{V};
\node[token](xiyA){xiyA\nodepart{second}VM};
]
]
]
]
]
\path[link] (AwiPZa.south) edge[bend right=72] node[pos=0.16,fill=white,sloped] {\scriptsize {k1}} (xiyA);
\path[link] (ne.south) edge[bend left=32] node[pos=0.50,fill=white,sloped] {\scriptsize {lwg\_\_psp}} (AwiPZa);
\path[link] (kala.south) edge[bend right=56] node[pos=0.25,fill=white,sloped] {\scriptsize {k7t}} (xiyA);
\path[link] (monA.south) edge[bend right=48] node[pos=0.30,fill=white,sloped] {\scriptsize {k4}} (xiyA);
\path[link] (ko.south) edge[bend left=32] node[pos=0.50,fill=white,sloped] {\scriptsize {lwg\_\_psp}} (monA);
\path[link] (wohaPZA.south) edge[bend right=32] node[pos=0.50,fill=white,sloped] {\scriptsize {k2}} (xiyA);
\node[below=of xiyA](root){\bf root};
\path[link] (xiyA) edge (root);
\end{tikzpicture}
\end{item}
\end{itemize}
\end{samepage}
\end{item}
\end{enumerate}
\end{enumerate}
\end{document}
